﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy01
{
    class student : Person
    {
        private string Major;
        private string Grade;
        public string MaJor
        {
            get  => Major;
            set => Major = value;
        }
        public string GrAde
        {
            get => Grade;
            set => Grade = value;
        }
        public void st() {
            Console.WriteLine("我是{0},id是{1},性别是{2},身份证号是{3},联系方式是{4},专业是{5},年级是{6}",
                base.NaMe, base.ID, base.SEx, base.CarDid, base.TEl, this.MaJor, this.GrAde);
        }
        public student(int Id,string Name,string Sex,string Cardid,string Tel,string Major,string Grdae)
            :base(Id,Name,Sex,Cardid,Tel){
            this.MaJor = Major;
            this.GrAde = Grdae;
        }
    }
}
